package robot.exception;


public class RobotException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5225510704437126456L;
	protected String error;
	protected Object obj;

	public RobotException(Object obj, String error) {
		this.obj = obj;
		this.error = error;
	}

	public String getError () {
		return this.error;
	}

	public void print () {
			System.out.println(obj.getClass().getName() + " : " + this.error);
		//		this.printStackTrace();
	}
}
